Return status code correctly when running tests.
Make lock meta data tests pass on JRuby.