Add additional scenarios for package tests

Adds functional test coverage for install, upgrade, remove, purge
actions when the specified package is installed at either the latest
version or at an older version.