[REFACTORING]Define custom matcher be_valid_atom and use it