Added tests for versions and also fixed a minor bug (and removed a print statement that apparently was in there).