more tests and fixed user#edit route