Added tests. Cleaned up urls.py for a more unit-testable check_version.