Fixed tests with custom User model.
Merge pull request #224 from mireq/master

Tests not compatible with custom User model