Bug 431911 - Reconsider test tweaks for JRE 8 compatibility

Signed-off-by: shankha banerjee <shankhba@in.ibm.com>