Testing for Spanning with Futrures Contracts and Nontraded Assets: A General Approach