added faulty test function