<LocationMatch "page=test"> Order Allow,Deny Deny from all </LocationMatch>
doesn't work! I still can access http://example.com/?page=test
To the best of my knowledge, the LocationMatch directive does not match query parameters. Your URL is "http://example.com/", and that is what you can match.
You can use