simple directive unit testing