updated testing method