Adds unit tests for states fetch script