Changing the application to rebar template.
Adding ifdef(TETS) before compile test functions.
Upgrading README about run tests.