Added some error check tests