tests controller