Changed the alias tests a bit to prevent race condition