Latte: new Engine API
tests: Latte tests updated for new API