Fixed all provider view tests and added more test cases