Add extractNumAndDenom method tests
Refactor tests
Refactor string splitting methods