added tests
added new test for posting results
Fixed some stuff to make tests work with the changes in master
fixed tab/space problem
making suggested changes to code
Merge branch 'tests'