Testing with dist mode