edit sql in playground even if save failed + tests