Add test for getting attributes

Signed-off-by: Daniel Francis <francis@sugarlabs.org>