Added first functional tests