Adding unit tests for nvm_ls_current. Relates to #487.
Fixes #487.