Fix the version exports and add some tests for them.