fixed unit test and changed arrays name to a better name