add more tests
None of them pass.
Also some typos and uninitialised variables.