Fixed the testing procedures so I can specify distance and mass units and to set a default library version of double