Fix java tests

- Remove strict Tomcat version check

- Increase tiny Java app memory allocation