Add test case and packaging files

This pull request contains a simple test case and packaging files for debian and redhat systems.

Please consider this for merging.