tests: add test to samples - infrastructure