add some exam tests, fix bugs they found