add tests for detecting gems