directive unit tests