Unittest cleanup, better error messages
for debugging inline template errors, fixed some deprication messages,
and moved the rest of the unittests to not use various depricated
methods.