updated format checkint
updated error checking test