Fix a few bugs in the database test work

Some of the changes in https://github.com/GreenGroup/RMG-Py/pull/196
broke the isomorphism unit tests, as discussed in that pull request thread.
This pull request hopefully fixes it, and adds a few more tests to the unit tests,
making them even harder to pass.
@nyee, please see if what I did matches what you intended.