Updated test case. Fixed issue in ScalarObject