refactored QBETest.java