Added constants for enabled and disabled state
Set a fallback value (1.0.0) for version
Replaced mock server with mockito.