Fix bad option in and add tests for cache subcommand

Signed-off-by: Don Naegely <naegelyd@gmail.com>