Adding unit tests for nvm_ls_current. Relates to #487.