java interpreter fixed for multiple test cases