add error catching to kernel manager

also, adding further tests to kernel manager
added tests to nbmanager for url encode/decode