fixed dyalizer errors
Use erlang.mk and proper for testing