implemented functional tests using behat