Merge pull request #2 from joseeight/tests

Adding capability detection tests