completed unit tests for virtual dir