updating testcase with methods from laravel.

Signed-off-by: Gnanakeethan Balasubramaniam <gnanakeethan@gmail.com>