added unit test for ifgram, much fail