Added test fixture class for database tests
Changed tests to use fixture