adding kmod module unit tests

Hi @jfindlay, Please review the kmod_test case and let me know if you have any review comments.