Fixed default value
Fixed minor syntax error
Added actual test
Added db clearing method