Added test for redirecting back to view profile

This test will make sure that the location after the redirect method has
been called is view profile. Had to inject service $timeout into test
code in order to be able to test the delay.