tests for embed function