added tests for DirComponent