Fixed tests. Now records are not added to db while testing.