Added test to implement compiler simplifications

Signed-off-by: Stefan Marr <git@stefan-marr.de>