Fixed test errors and checked workings of alterations