Is there a way of creating a sandbox user?

I want to unit test my web app and I was wondering if there's any way of creating a sandbox user where I can change stuff about that account in order to test my web app (for example make the subscription expired and stuff like that, stuff that might happen to users in a live project)