Added an integrated test case