[fix] process pseudo-module and add tests


for some reason I forgot to test this.