fix #68, fix $sel problem when using special directions and add tests
Merge pull request #71 from EragonJ/bug/68

fix #68, fix $sel problem when using special directions and add tests