Fixes no-minify option

This commit adds a test for the no-minify option, and fixes an instance where minification happens despite the flag being passed.