add tests log; minor clean up