testing auth and select

• implemented auth and select
• wrote some code to test them
• allowed each of the test functions to use them to log into redis the
same (correct) way each time
• moved around the error callbacks