Refactoring tests for "db"
Refactored and added test for "db"
Use "spec" reporter when running tests
Added test for "db"