adding tests and spec test infrastructure for directory observers