added debug flag for the gradle command
added basic Mock implementations
fixed Integer casting