fixing tests and some facebook stuff