Add two tests to suite `lib/agent/index`