Fixed edit_test linking issue
Fixed some clang warnings