Added test for slice properties.
Fixed golint suggestions.