converted tests from the jregression project and added functionality