Found a Py 3.3 problem.

Added basic tests.