test: add tests for version.jl

Follow-up to #2912.