lint
refactor stagesMock to a factory, added more tests for ranking