add tests for initialize and regex methods