Added functional test and cleaned testing logs