add rest tests