actions and tests in common + common/utils for delete_spaces and pretty_print_array