Tests for QType are fixed

The #138 pull request should pass travis if merged with this one.