Add tests for samples

Change-Id: I8725fedc6f728adaef91ffe9bb80df1c04debf85