Tons of test improvements + Java detection for chart app