Now only building tests when DEV_MODE flag set

USE_DEV_FLAGS also renamed to DEV_MODE