test for pattern match of pack
more test and more pattern mattch
pattern match for file
test for pattern match of service/command
test code refactoring
restrict four categories: pack, file, service, command
throw exception if pattern match failed