Fix some CSS issues in resource viewers
Add missing tests