add support for 'test' targets

Signed-off-by: Karsten Gebbert <karsten@null2.net>