[Tests] Improved tests, fixed `any` helper
[Tests] Split specs into separate files
[Tests] Split code into separate files
[Tests] Removed Deferred from Promise.then