Removed authmode test code