add tests for #9
keep things php 5.3 compatible