Improved inspect function tests