added more unit test cases, added logic to delete test objects to keep database clean