Added unit-test for FITC inference method and fixed bugs