added first part of functional tests