rrdf unit test and fixed function typo