Finished testing

I finished testing the complete app - restructured the testing directory, created mock modules and added SinonJS for better tests