added reconstruction test function