Move test code into src/test/

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Fix whitespace

Signed-off-by: Johannes Schindelin <johannes.schindelin@gmx.de>
Merge pull request #1 from dscho/keep-main-clean

Keep main clean