Added some specs for the custom failure class