references and testing