Helper methods are available to the controller instance, not on the test itself. Either include the helper directly in the test (messy), or use the controller (or some other object that includes the helper) to call that method.
To test using the controller, you can use the @controller instance variable inside an ActionController::TestCase
:
class LocationControllerTest < ActionController::TestCase
def test_update_location
...
loc = Location.find(loc.id)
html = @controller.show_previous_version(loc)
...
end
end