set up initial function in github module, refactor test