added tests for database provider