should fix tests

minitest 5.1 for rails 4.1 and core, streaming for rails >= 3.1

reenable stream test for java and emptyline cleanup