added tests
added rebar.config