Add ability to mock pass by reference methods