a unit test for LC->resource function