Reorganise spec tests.

To act on a Pull Review comment about duplicate code I added a spec_helper.rb
file and renamed the tests from a test_ prefix to a _spec suffix.

Added a test to check the format of the version string.