sign extend tested

Passes all tests, works as planned