Fix for ENYO-3288

fix issue where function and context were not properly binding; add sanity tests; add unit test to confirm expected behavior

Enyo-DCO-1.1-Signed-off-by: Cole Davis <cole.davis@lge.com>