Portfolio.expireOptionPosition() expired all open stock positions. Stock expiry does not exist and so is always before today's date (by epoch time). Wrote unit test to confirm code fix.