added support for integration testing in the specs and added additional tests for count.