unit test for wapcaplet updated with some bugs fixed in wapcaplet.rs