fix for mathias bug on repeat pattern

final db tests
use phpunit.phar
tests for hide categories