adding test cases for ESBJAVA-3047