Kernel - remove last / in getVarDir()
add Kernel unit tests