Corrected unit tests verifying database