Added another unit test for managed instance case.