Custom attr tests

Tests for #37