Tests for user controller