Massive user test case and infrastructure refactor

Everything has been refactored and made better. You'll like it, I promise!