Added tests to onlinepostmanager