Tried to fix ttl, renamed err vars in testUnauth, fixed `err || null` bug