[TEST] Testing callbacks to update paths service

I moved internal, anonymous callback functions onto the $scope in order to test them.