Worked out a preliminary solution for most $j->error tests.