Add unit tests

* Use `vspec` for RSpec-like syntax
* `vspec` relies on `vim-flavor` to run the specs
* Move command setup to a local function for testability

Closes #42