fix load presets, add unit test