A correction on your numbers.
In your first scenario, including Medicare Levy, Flood Levy, your refund assuming the normal tax PAYE tax paid throughout the year, is $5016. Therefore, your $15,000 in losses is offset by $5016 making a net position of -$9,984
In your second scenario...