Updated test script to run from .bin
Added test for regex patterns