Remove useless pointer reference operators in tests