Checks that 'halcmd save' produces the expected output, including items created with 'newinst'