Added tests for managed value replacements