Add mock support for testing