remove redundant code from receiving test