sw test tool: add unit test

Signed-off-by: Minoru TAKAHASHI <takahashi.minoru7@gmail.com>