User controller testing base

User controller testing (trying to improve readability)