fix test and remove unused attribute from controller