fix indentation to 2 spaces
use echo instead of EDITOR in tests