Extract maven test functionality into a minor mode