refactored rawMock handler
refactored areEqualArrays