Add package sanity tests. Fix bug in SimpleCommand.equals