added sanity check for wrong test input values