Added functional test and several fixtures