Add resource lookup to test