I am trying to run `truffle test` on an old contract which was written using `pragma solidity 0.4.24;`. While I am able to deploy the contracts using `truffle migrate`, I get the following error when running `truffle test`:

```
Using network 'development'.

Compiling your contracts...
===========================
Error: CompileError: Error parsing truffle/DeployedAddresses.sol: ParsedContract.sol:4:55: ParserError: Expected ',' but got 'payable'
  function Marketplace() public pure returns (address payable) { return 0x6395927945EA39aDD6B1E04144f1e1324B30DeFC; }
                                                      ^-----^
Compilation failed. See above.
    at async.whilst.error (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-compile/profiler.js:369:1)
    at /usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:969:1
    at next (/usr/local/lib/node_modules/truffle/build/webpack:/~/async/dist/async.js:5222:1)
    at Promise.all.then.results (/usr/local/lib/node_modules/truffle/build/webpack:/packages/truffle-compile/profiler.js:351:1)
    at <anonymous>
Truffle v5.0.7 (core: 5.0.7)
Node v8.12.0

```

`truffle/DeployedAddresses.sol: ParsedContract.sol:4:55` is not code I've written, nor is it part of my project. I suspect this error may be caused because Truffle *is* running solidity 0.4.24 to compile my contracts but that whatever it uses to execute internal tests is running solidity 0.5. Is there a way to verify/change this?

Here are the contents of `truffle.js` in the main directory:

```
module.exports = {
  migrations_directory: "./migrations",
  networks: {
    development: {
      host: "localhost",
      port: 8545,
      network_id: "*" // Match any network id
    }, 
 // ... Other configs specified here, removed because irrelevant
 // to SO question ... 
 compilers: {
  solc: {
    version: "0.4.24",  
    }
  },
  solc: {
    optimizer: {
      enabled: true,
      runs: 500
    }
  } 
};

```

and the contents of `truffle.js` under `/test: 

```
module.exports = {
  // See <http://truffleframework.com/docs/advanced/configuration>
  // for more about customizing your Truffle configuration!
  networks: {
    development: {
      host: "127.0.0.1",
      port: 7545,
      network_id: "*" // Match any network id
    }
  }, 
  compilers: {
  solc: {
    version: "0.4.24",  
    }
  }
};

```

I have both `.sol` and `.js` tests and neither will run (either individually or as part of running all tests with `truffle test`).