There is a bug in the #find_forum and #find_or_create_forum methods.
Those methods attempt to locate forum by category name and forum name. In the case where different categories have forums with the same name, then a forum from the wrong category may be returned in error.
The fix is to ensure that the forum comparison uses the category ID in addition to the forum name.
A pull request is forthcoming.