Support record name as atom
Add some specs