converted the tests to junit 4