[Lib/Tests/Misc] Added functionality for custom rules; added Makefile for easier testing.