Updated tests for dpkg and fixed issue with get_installdate