fix(engine): fix typo in test method names
chore(engine): refactor script parsing, compiling and execution

- script source and resources will now first parsed and optionally
  compiled on first execution

related to #CAM-2863