Wrap echo and exit's in assertions