a bunch of source code copied, trying to implement real tests. bringing code up to github.com/ryancoleman/pep8 compliance