add tests for embed controller