tests: Add a function to return the type of the attribute's value