add tests to test if spied private methods