Fixed several bugs in read test controller