Added code style configuration for eclipse and fix a test