Added behat tests

Added behat tests. Retooled taxonomy_exists method