Added more tests, and some auth fail cases.