Add test cases to TestCapture
Add test cases to TestCapture

Add new test cases ensuring the capture function captures the leading
character as expected.

kreuzwerker/envplate,jbnicolai/envplate,kreuzwerker/envplate