implemented two tests