Fixed not to use sourceState and sinkState and test dependencies.