Moved shadow test into a new kernel.