Remove test code from authorised? check