Create spec_helper and add simple cov for test coverage.
Add more tests and fix scalar ordering issue.