Fixed Last method issue, implemented unit tests (100%)