Added test for state regex thing