add test case for cache-control and content-type to close #380

This issue is the last one for milestone 'beta3'.