Add unit test for what binary.py should be

Run tests with `python -m unittest discover`.