added tests to the profileImageUploadCtrl