tests for sample