cost test added to the end