Finished unit tests for readings controller

Signed off by: Rafael Reggiani Manzo <rr.manzo@gmail.com>