Add tests for methods and for correct solution to Euler #1