Cleand up JMineRunner and improved tests