test successfull for all the given inputs