Adding tests on meta-data about user classes. Part of #1843.