cleaning db tables and adding test cases