Added test for completion, fixed whitespace/indentation