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