Added functional Test