updated raw test function