added tests, stopped csv from moving around