Rename type to identifier because rails kinda reserves thatf
Tests for stat to make sure that all the attributes exist
Let's fufill that test's requirements