added phphunit tests