refactor jvm-related liberty rspec tests