testing entity framework repository implementation