Fixed js tests for adEngine