added some tests and fixed stuff they found