Testing custom authentication