made testcontroller workable