Atom match with tests