Add socket tests; fix related bugs

Signed-off-by: Kirill Enykeev <enykeev@gmail.com>
Add RRD helpers tests; move helpers to their own folder

Signed-off-by: Kirill Enykeev <enykeev@gmail.com>