Unit tests for scalar