add tests for when either p or q are negative