Fix getAttribute, write better module tests