[MR] {test after code} added tests for preferences