added jasmine tests for regex2nfa.js