Test invalid sequence

Raise exception on bad sequence to query description, including test as discussed in #89.