resource code test