Add assert tests to gcc build.