Tests running function