[dev]some phpunit tests