factored test code out of kuj_orm and into test.py