Fixed a bit of testing to populate tests database