fixed edit and create tests