in-state for each state & more unit test cases
fix bug for repeat {2, 5}, create accept state first