fix max tests for resource queries

Change-Id: I1a6add4cd0e1be7c86370f93490e61f892314324
Signed-off-by: Doug Hellmann <doug.hellmann@dreamhost.com>