Security fix for #42 CSRF filter null comparison, added initial tests for store method.

Fixes #42. Security fix for #42 CSRF filter null comparison, Added a few initial tests for store method.