some functional tests