functional tests up to saving input