added tests for dependency