Fix tests

Fixes https://github.com/agoragames/chai/issues/13 and https://github.com/agoragames/chai/issues/22