added test to ensure the base type was set before trying to do anything
with it on line 161 and line 174