Renames and moves common_ancestor function
Moves generic type tests to generics_test.rb