added legajo tests & some functionality