Test that cx command runs and from tmp dir