Updated for chai assertions.