fixed parser errors in tests. These were caused because a null action was used as argument for the action2stm which then tried to extract its location. Null check have been added.