Add profile editing capability
Correct indentations in tests