fixes tests, makes version public so it can be tested