completed directive unit tests