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