Fix indentation according to PEP 8.
Add tests.