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