move test to own automake fragment

Signed-off-by: Sergei Ianovich <ynvich@gmail.com>