add some documentation to test program and cleanup tests