test will check excep value