fix annotation warning + add inspection test