Fixing ao test in kernel