Fix file test commenting logic to prevent mobilespec failure due to malformed comments