editing the value and type error
adding type and value error test cases