fixed stubbing of method with array parameter