Replaced inline kernels with external kernels in test modules.