tests: fix throwing assertion.

The error message regex was previously an argument to the `it` call as opposed to the `assert.throws` call. I noticed because the wording was "Constructor**s** expects", but it was still passing the tests. I moved it to the right function and removed the extra `s`.