Refs #27 - Fixes unittest to fail rather than error from get_details()

Also fixes an indentation/scope related bug from the previous merge
conflict resolution.