Start implementing integration tests for the engine
String coertion in factory
Fix engine loop
Code formatting