Added assertions for history file creation.
Added assertions on the hosts file contents when calling the add
command.