fixes issue #407
adapting test case for issue #407 to work with ruby 1.8.7
improved test case, found new bug, fixed it
minor fix in spec file, fixing last commit
Remove stray puts