made frontend test script more robust