added basic set of functional tests