ModuleDatabaseQueries now asserts on module testing status. Closes #492