change expect.js by chai. chai has a plugin/whatever called 'chai-as-promised' that tests promises
refactor first test to use chai instead of expect
convert to spaces
first test for promises, getting used to chai and chai-as-promise syntax
write the first real test for Factory module