Bug fixes, test expansions.
Specifically, fixed a bug where 'this' in system calls would be 'window', whereas it should be the kernel object.