libtp: Add path/name validity tests
libtp: Add path/name validity tests

This commit adds some contracts to the functions in misc.vala,
path_from_name and name_from_path.

Bob131/JiyuuBot-ng,Bob131/JiyuuBot-ng,Bob131/JiyuuBot,Bob131/JiyuuBot-ng