fixed regex test() call