Revised kernel module and test files