Unit tests for Engine