Changed  "$scope.test" name into "$scope.user"