Added unit test of DscName().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Fixed PkgName() and added unit test.

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Added unit test of Architecure().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>
Fixed using testing.Fatalf() instead of testing.Fatal().

Signed-off-by: Kouhei Maeda <mkouhei@palmtb.net>