Fixed inconsistent id on type class and began fixing type test