add unit tests for directive and corective directives