[test][algorithms][is_valid] replace "const bool" and "static const bool" by "bool const"