Fix some of the failing tests

Signed-off-by: Madhura Jayaratne <madhura.cj@gmail.com>