add example test for proc meminfo agent
properly init working directory
make API more clear
Run the test at build time via make.
Merge pull request #274 from yast/agent_test

add example test for proc meminfo agent