Added an enum configuration test

Also fixed a bug I discovered thanks to it