add pending if mocking to tests