added bad data handling test