Unit of work pattern tested