fix gemset to get version correctly. fix unit test to include stderr