Fix typo in assert methods: 'then' -> 'than'. Fixes #1021

Resending #1230