Mock returns string instead of true