add test for runtime issue 307
Merge pull request #322 from tessel/pc-issue-307

Adds tests for issue 307