Add tests + docs for activity queries