Merge pull request #564 from xcambar/nvm_detect_profile

Tests for PROFILE detection