Revert "Replaced code with lambda."

This reverts commit 3f6df66cf12a05701aee8caed48a83b42fec9210.
password in test was in uppercase. changed to lower case
#IAA-37 ready to merge work development 15m