test that it works with multiple attributes