Fix tests to run in RubyMine