fixed test database bug