added directive tests and trimmed code to reach 100% test coverage