Fixed gem file generation problem

Fixed problem related to generating test file names and added missing
test output files. Fixes issue #55.