added tests for Profile model (bug 661619)