Additional test coverage

Recently we had 3 issues (related to this tests) on JRuby and since MRI doesn't have test coverage to them and also JRuby tests are synced with the MRI tests so I think would not hurt if we add it.