add some unit tests for teacher profiles view. 4 methods still uncovered.
start work on unit test for uploadtoserver method.