Add some core tests for scalar operations
Merge pull request #17 from dronir/master

Add core tests