Clean up function syntax

Remove space before ( in function definition. Put { on new line.
Make test functions static.

prscript:  https://buildbot.suricata-ids.org/builders/ken-tilera/builds/21