fix refreshrate and tests