basic tests for regex segments