Add test.helper

Initialize logging system in it.
Improve gitignore for log protection.
Add test cases for invalid requests.