Added a couple test methods to the API
Whitespace
Added TODO comment
Fixed run_method using wrong actor id
Updated fixture to be compatible with API
Refactor engine: queries compiled once, less wet
Fixed run_code not running the right code