minor fixes adding tests adding jdoc making all tests run