Refactoring tests for Euler problem number one