Test coverage for new github.js function