• Custom User Avatar

    The problem is not the same, your problem is you're using global vars and they keep their values between tests, the sample tests has increasing lenght, that's why they worked (just by luck). You can see the actual value (that your function returns) in those error messages is the same. Make the global vars local and you'll be fine.