Added some test cases. Stuff now compiles and loads in LKB. Comitting so that if my vbox freezes, changed definitely won't get lost.