WIP: refactoring in exercise update/create and tests