enhanced testing framework, mocked some objects