added pattern test (and removed unused key)