Fixed test for inclusion of fletcher lib, corrected return values for some functions