iamax unit test/fix