Add test for v1/markets. ref #302