Added some data layer tests around patient