Added unit tests. All pass against Chrome 37. Might want to ignore the 'multiple' tests due to performance reasons, but it's important the aggregate ones work.