pretty error strings; tests