implemented test for reset pwd functionality