Test Cases Modified

Fixed the mock for repository,
Added Search (without) primary key on Messages