Added tests and improved compilation of ObjC