refactor unit test for Project Euler problem 1