Fixed testing problems with Kernel.
Fixed fatal errors, deleted deprecated tests and created new.
Merge origin/master