added pattern match test; and rename test class