Removing usage of ~[] from tests