update to tests.py

added tests for userprofile