Solved hanging curly brace, cleaned up testing code a bit