Minor improvement in test code

Changed the behavior of setupHandleToDatabase to do incremental set up.
Minor change in the loginTemplate - switched the roleType to a radio
button input type