Fixes strict equality.
Exports throws normally
Adds tests.