[is_valid] fix unit test compilation typos
[is_valid] fix unit test linkage problem with two/three_or_more
[is_valid] fix non-running testcases and therefore add appropriate failure message