setup unit tests and validated inject method