Added unit tests to toolkit for asserting errors are thrown is toolkit functions fail.