Fixes Script test case for coverage and style