adding some functional tests