Added test to cover failing statements in scaffold view