unit tests for class dependencies