reworking the test databases; still need to reintroduce write tests