use js not coffee for test
refac
mod test: check existance, not total.
refac
mod all test: check existence, not totalCount