More tests, better tests

* Reorganized tests into directories
+ Added login helper
+ Prevent localStorage use inside Phantom
+ Added tests for account settings
+ Improved category tests