Return memory_peak back - it is required in pinba.proto
fix bug in flush, add method tests with sinon stubs and spies