Added some safety check tests.