preferences window
fix typo
update tests a bit