[PATCH v5 1/3] tests: Add a test for SampleLevel() function.