Fix proposed for issue #1, expect() function fixed

Importante verificar y confirmar.