Remove old test code from kernel