add rake test and calc percent_read function