added test for attr widget