Write to test file every time blin occurs