Fixed: :tablast was implemented as :tabfirst

Also added missing unit tests. This fixes #1172.
Merge pull request #1473 from Kazark/master

Fixed: :tablast was implemented as :tabfirst