implemented testmap to engine.js