Add make test, make it work and use it in rpm build

Change-Id: If7162928be49d1f505abc44d8f61c1d17b18de5b
Signed-off-by: Martin Sivak <msivak@redhat.com>