Added test case for condition context definition passing, fixed phpunit improvements suggested by fubhy.