added a bunch of tests and added clean log