Add  to Position.exerciseOptionPosition set underlyingTicker to ticker when opening a stock position to override default non-null value of 'AAPL'
Portfolio.dbToPortfolioPosition(ResultSet rs)  hardcodes "open" to "true" which works logically within the current context by which the method is called but is logically unsound. Removed an expired option from a Groovy test unit.