Re-added the 'test' target, this time in the correct file, then regenerated the main.mk file.