Add IFD getter and refactor tests.