Adding spring java config and tests