added functionality and performance test cases for wapcaplet-2