add test to check if NS API sometimes returns invalid xml