The guards should be moved to the interface function in `meck` where the first call is made. `erlang:is_integer/1` can be only `is_integer/1`.