WIP: added regression test for fgmax but test fails

This PR is to see if travis sheds any light on why this is failing.