Refactored fizzBuzz and wrote tests for new requirements.