Added 'lastOrDefault' implementation + unit tests