added try success failure test