Add missing keyword raise to get_profile_binding function

Improve corresponding unit tests.

Change-Id: I8f71ee7aa8fcafbf3ef6e3f9d4f0b89c874af73b
Closes-Bug: #1329426
(cherry picked from commit 13fe102fadf8d25b0927ee172b0fb3f681c56bf4)
Merge "Add missing keyword raise to get_profile_binding function" into stable/icehouse