Add a test for list by source

Change-Id: If63134c37784157d19848f35f6546c98402de92d
Signed-off-by: Angus Salkeld <asalkeld@redhat.com>
Add tests for samples

Change-Id: I8725fedc6f728adaef91ffe9bb80df1c04debf85