Created tests and fixed programs