Small optimization in checking assertions
Make tests cover the new behavior
Merge pull request #140 from danizord/hotfix/assertion

Small optimization in checking assertions