added unit tests for Yinject