Fix testing files to fit to API changes

Currently this fixes Messenger_test and removes the obsolete timer_test. 
Also fixes friends_test.