add - tests for range method and case, any, start and end of line

+ move some new tests to separate file
add - simplify endCapture, add tests for null or
Merge pull request #24 from lanwen/tests

add - tests for range method and case, any, start and end of line