Fix entry definition, add autoload definition
Fix space into equal and add test
Move tests to test/

merge @raphink's changes, but move tests to test/