changed hash to string in mock