Added test case to validate advanced constructs