Small cleanups
add unit test checking for dirty files