add a test for 'P' flag