adding code for erroneous measurement tests