Add test for missing statement. Log error on no orgunit