ResultEngine and tests
added ResultEngine and friends