fixing storing wrong mock name
adding ability to mock without explicit function definition