Removed the test:middle task.
Refactored to be nicer to JRuby.