Fixed bugs in test_lif and test_lif_rate (fixes #136).