directive unit test