Rename BUILD_TESTS flag to BUILD_TEST