testing according to AAA principle + Session fix + PHP 5.3 fix