Coding standards.

Signed-off-by: Ben Corlett <bencorlett@me.com>
Fixing tests for latest cowboy changes.

Signed-off-by: Ben Corlett <bencorlett@me.com>