Unit tests for maven provider and type
DRY up the specs a little