Improved tests and ensured that endpoint_action works with multiple versions.