Added rebar.config for tests. Improved Makefile.