Using tests to check for correctness

- Handles multiple cases
- Much easier to maintain