fix NullPointerException for getInfoWs and adding related missing tests