drools-compiler: added test for different KieSession behaviour based on its construction

Added reproducer for https://bugzilla.redhat.com/show_bug.cgi?id=999388.