ticket:7 some tests
ticket:7 added friendlist priorities
ticket:7 little refactoring