strshift: handle negative values

addition of check unit tests, TODO makefile integration for check tests