Added some checks to the test.