fixed rows controller and corresponding unit tests