Wrap context handling in Engine object
Extract Engine interface
Move setUp and tearDown to test class
Move rules for SimpleEngine to its own directory
Use common.js module system