added some basic tests, and cleaned up logs