add some test cases for custom authentication backend