Fixed requires to work on single test
Added JAVA_OPTS support