Added simple functional tests