update project version to Xcode 5.1, fix unit tests memory leaks