Move getter and require statements to fore so that test error line numbers are not skewed