Unit tests for remove commands

Corresponds to the changes in https://github.com/pulp/pulp/pull/407

The APIs didn't actually change, but there were no unit tests so this PR is largely just to add those.