added tests for the engine