adding unit tests and moved events back to the kernel for now