added first functional tests