add test
fix feature detection
Merge pull request #2 from jkroso/master

fix feature detection