Fixed typo (thanks to su-bzero@github)
Fixed a bug in the test