Science gradually gains knowledge about the things we can test, and does not move in a straight line. But it has proven to be reliable over time, which is impressive given how unreliable people can be. Yes, people can be dogmatic and proud about scientific discovery and learning, an attitude which is, ironically, not scientific.
The things science cannot test are, well... not testable. Hence, the near unlimited ideas and beliefs that people have developed, abandoned, and recreated over the thousands of years that we've been around. And the realization that, after thousands of years, we still aren't anywhere near a consensus on issues of religion or spirituality.