references and tests