Add test for ws_object