           lti_version: 'LTI-1p0'
       @provider.valid_request req_no_resource_link, (err, valid) ->
         err.should.not.equal null
+        err.should.be.instanceof(lti.Errors.ParameterError)
         valid.should.equal false
         done()
 

          resource_link_id: 'http://link-to-resource.com/resource'
      @provider.valid_request req_missing_type, (err, valid) ->
        err.should.not.equal null
        valid.should.equal false
        done()




    it 'should throw an error if no consumer_key or consumer_secret', () =>
      (()=>provider = new @lti.Provider()).should.throw(lti.Errors.ConsumerError)
      (()=>provider = new @lti.Provider('consumer-key')).should.throw(lti.Errors.ConsumerError)


  describe 'Structure', () =>
