Added tests for complex object