bugfix for unary operator - and added some tests