Tests work after fixing problems with tables and changing many smaller things.